using System.Diagnostics;
using System.IO;

namespace Prjinit.Helpers
{
    [DebuggerNonUserCode]
    internal static class ContentTypes
    {
        public static bool IsBinary(this FileInfo fi)
        {
            var ext = fi.Extension.Substring(1);
            return ext == "dll" || ext == "exe" || ext == "png";
        }

        public static bool IsText(this FileInfo fi)
        {
            return !fi.IsBinary();
        }
    }
}